package com.lemon.components.wechart.order.supporter;

import com.lemon.components.wechart.enums.MsgTypeEnum;
import com.lemon.components.wechart.order.supporter.msgContent.TextContent;

public class SendTextMsgOrder extends SendMsgOrder {

	private static final long serialVersionUID = -7727539078271894686L;
	//openid
	private String touser;
	private MsgTypeEnum msgtype;
	private TextContent text;
	@Override
	public void check() {
		validateHasText(touser, "touser");
		validateNotNull(msgtype, "msgtype");
		validateNotNull(text, "text");
		validateHasText(text.getContent(), "touser");
	}
	
	public String getTouser() {
		return touser;
	}
	public void setTouser(String touser) {
		this.touser = touser;
	}
	public MsgTypeEnum getMsgtype() {
		return msgtype;
	}
	public void setMsgtype(MsgTypeEnum msgtype) {
		this.msgtype = msgtype;
	}
	public TextContent getText() {
		return text;
	}
	public void setText(TextContent text) {
		this.text = text;
	}

	@Override
	public String toString() {
		return "SendTextMsgOrder [touser=" + touser + ", msgtype=" + msgtype + ", text=" + text + "]";
	}

}
